package com.shzu.jwc.ty.bean;

import java.util.ArrayList;
import java.util.List;

public class TheoreticalPaperModelExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TheoreticalPaperModelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTheoreticalPaperModelIdIsNull() {
            addCriterion("theoretical_paper_model_id is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdIsNotNull() {
            addCriterion("theoretical_paper_model_id is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_id =", value, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdNotEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_id <>", value, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdGreaterThan(Integer value) {
            addCriterion("theoretical_paper_model_id >", value, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_id >=", value, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdLessThan(Integer value) {
            addCriterion("theoretical_paper_model_id <", value, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdLessThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_id <=", value, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_id in", values, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdNotIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_id not in", values, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_id between", value1, value2, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_id not between", value1, value2, "theoreticalPaperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeIsNull() {
            addCriterion("theoretical_paper_model_time is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeIsNotNull() {
            addCriterion("theoretical_paper_model_time is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_time =", value, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeNotEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_time <>", value, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeGreaterThan(Integer value) {
            addCriterion("theoretical_paper_model_time >", value, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_time >=", value, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeLessThan(Integer value) {
            addCriterion("theoretical_paper_model_time <", value, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeLessThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_time <=", value, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_time in", values, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeNotIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_time not in", values, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_time between", value1, value2, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_time not between", value1, value2, "theoreticalPaperModelTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberIsNull() {
            addCriterion("theoretical_paper_model_choose_number is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberIsNotNull() {
            addCriterion("theoretical_paper_model_choose_number is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_choose_number =", value, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberNotEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_choose_number <>", value, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberGreaterThan(Integer value) {
            addCriterion("theoretical_paper_model_choose_number >", value, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_choose_number >=", value, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberLessThan(Integer value) {
            addCriterion("theoretical_paper_model_choose_number <", value, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberLessThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_choose_number <=", value, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_choose_number in", values, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberNotIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_choose_number not in", values, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_choose_number between", value1, value2, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_choose_number not between", value1, value2, "theoreticalPaperModelChooseNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberIsNull() {
            addCriterion("theoretical_paper_model_judge_number is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberIsNotNull() {
            addCriterion("theoretical_paper_model_judge_number is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_judge_number =", value, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberNotEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_judge_number <>", value, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberGreaterThan(Integer value) {
            addCriterion("theoretical_paper_model_judge_number >", value, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_judge_number >=", value, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberLessThan(Integer value) {
            addCriterion("theoretical_paper_model_judge_number <", value, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberLessThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_judge_number <=", value, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_judge_number in", values, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberNotIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_judge_number not in", values, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_judge_number between", value1, value2, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_judge_number not between", value1, value2, "theoreticalPaperModelJudgeNumber");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeIsNull() {
            addCriterion("theoretical_paper_model_choose_time is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeIsNotNull() {
            addCriterion("theoretical_paper_model_choose_time is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_choose_time =", value, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeNotEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_choose_time <>", value, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeGreaterThan(Integer value) {
            addCriterion("theoretical_paper_model_choose_time >", value, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_choose_time >=", value, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeLessThan(Integer value) {
            addCriterion("theoretical_paper_model_choose_time <", value, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeLessThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_choose_time <=", value, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_choose_time in", values, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeNotIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_choose_time not in", values, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_choose_time between", value1, value2, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelChooseTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_choose_time not between", value1, value2, "theoreticalPaperModelChooseTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeIsNull() {
            addCriterion("theoretical_paper_model_judge_time is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeIsNotNull() {
            addCriterion("theoretical_paper_model_judge_time is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_judge_time =", value, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeNotEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_judge_time <>", value, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeGreaterThan(Integer value) {
            addCriterion("theoretical_paper_model_judge_time >", value, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_judge_time >=", value, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeLessThan(Integer value) {
            addCriterion("theoretical_paper_model_judge_time <", value, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeLessThanOrEqualTo(Integer value) {
            addCriterion("theoretical_paper_model_judge_time <=", value, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_judge_time in", values, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeNotIn(List<Integer> values) {
            addCriterion("theoretical_paper_model_judge_time not in", values, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_judge_time between", value1, value2, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalPaperModelJudgeTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_paper_model_judge_time not between", value1, value2, "theoreticalPaperModelJudgeTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}